<?php
/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class BaseController extends CController
{
	/**
	 * @var string the default layout for the controller view. Defaults to '//layouts/column1',
	 * meaning using a single column layout. See 'protected/views/layouts/column1.php'.
	 */
	public $layout='';
	public $config='';
	
	public function init()
	{
		parent::init();
	    $this->config['keyword']='';
		$this->config['copyright']='';
		$this->config['description']='';
		$cs=Yii::app()->clientScript;
		$cs->registerCoreScript('jquery',CClientScript::POS_HEAD);
		$cs->registerScriptFile(Yii::app()->request->baseUrl.'/static/plugins/artDialog/artDialog.js?skin=default',CClientScript::POS_END);
		$cs->registerScriptFile(Yii::app()->request->baseUrl.'/static/plugins/artDialog/plugins/iframeTools.js',CClientScript::POS_END);
	}
}